#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.http import HttpResponse


# Create your views here.
def index(request):
    return HttpResponse(u"第一个app展示")

#测试从地址栏获取参数
def add(request):
    a = request.GET['a']   
    b = request.GET['b']   
    c = int(a) + int(b)
    return HttpResponse("你输入的两个数值之和是%s" % str(c))

def ad(request,a,b):
    c = int(a) + int(b)
    return HttpResponse("你输入的两个数值之和是%s" % str(c))
